import request from '@/request'

export function selLog(data) {
    return request.post("log/selLog",data);
}

export function findOne(logId) {
    return request.post("log/findOne",logId,request.textConfig);
}

export function doSaveOrUpdate(data) {
    let path = data.roleId ? "update" : "save";
    return request.post(`log/${path}`, data);
}

export function deleteByLogId(logId) {
    return request.post("log/delete",logId,request.textConfig);
}

 